<template>
	<view class="user-chat-bottom m-f-ac animate__animated animate__fadeInDown animate__faster">
		<input class="bottom-input" type="text" placeholder="文明发言" v-model="text"/>
		<view class="icon iconfont icon-fabu m-f-jcc" @tap="submit"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text: ''
			}
		},
		methods: {
			submit() {
				this.$emit('submit', this.text)
				this.text = ''
			}
		}
	}
</script>

<style lang="scss" scoped>
.user-chat-bottom {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	height: 120rpx;
	padding: 0 20rpx;
	background-color: #FFFFFF;
	border-top: 1rpx solid #EEEEEE;
	.bottom-input {
		flex: 1;
		margin-right: 20rpx;
		padding: 10rpx 20px;
		border-radius: 10rpx;
		background-color: #F7F7F7;
	}
	.icon-fabu {
		width: 80rpx;
		font-size: 50rpx;
	}
}
</style>
